﻿@model GADC.Domain.Orders
@{
    ViewBag.Title = "订单详情";
}
<div style="height: 40px; line-height: 40px; padding: 0 10px;">
    <div class="pull-right" style="height: 40px; line-height: 40px;">
        <a href="@Url.Action("List")" class="btn btn-info  btn-large"><i class="icon-th-list icon-white">
        </i>返回列表</a>
    </div>
    <div style="height: 40px; line-height: 40px;">
        <h2 id="bigTitle">
            @ViewBag.Title
        </h2>
    </div>
</div>
<hr />

<div style="height: 20px; line-height: 20px; width: 950px; margin: 10px auto; padding: 2px 0;
    border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px; font-weight: bold;
    position: relative;">
    订单信息
</div>
<table id="Table1" style="font-size: 12px; width: 950px; margin: 10px auto;" cellpadding="8">
    <tr>
        <td style="font-weight: bold; width: 80px;" align="right">
            订单编号
        </td>
        <td>
            @Model.OrderID
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold; width: 80px;" align="right">
            订单类型
        </td>
        <td>
            @Model.OrderType.Name
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            订单金额
        </td>
        <td>
            ¥@Model.Price
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            下单时间
        </td>
        <td>
            @Model.Time.ToString("yyyy-MM-dd HH:mm:ss")
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            订单状态
        </td>
        <td>
            @Model.OrderStatus.Name
        </td>
    </tr>
</table>
<div style="height: 20px; line-height: 20px; width: 950px; margin: 40px auto 0 auto;
    padding: 2px 0; border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px;
    font-weight: bold;">
    订单跟踪
</div>
<table id="Table2" style="width: 600px; margin: 0px auto; margin-top: 8px; font-size: 12px;"
    cellpadding="5" cellspacing="0">
    <tr>
        <th style="width: 150px; border-bottom: solid 1px #B2CEFE;" align="left">
            处理时间
        </th>
        <th style="width: 300px; border-bottom: solid 1px #B2CEFE;" align="left">
            处理信息
        </th>
        <th style="border-bottom: solid 1px #B2CEFE;" align="left">
            操作人
        </th>
    </tr>
    @foreach (OrderTrack track in Model.TrackList)
    {
        <tr>
            <td align="left" valign="middle">
                @track.Time.ToString("yyyy-MM-dd HH:mm:ss")
            </td>
            <td align="left" valign="middle">
                @track.OrderStatus.ShowName
            </td>
            <td align="left" valign="middle">
                @(track.User == null ? "管理员" : "客户")
            </td>
        </tr>
    }
</table>
<div style="height: 20px; line-height: 20px; width: 950px; margin: 40px auto 0 auto;
    padding: 2px 0; border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px;
    font-weight: bold; position: relative;">
    收货人信息
</div>
<table id="showForm" style="font-size: 12px; width: 950px; margin: 10px auto;" cellpadding="8">
    <tr>
        <td style="font-weight: bold; width: 80px;" align="right">
            收货人姓名
        </td>
        <td>
            <span id="show_RealName">@Model.ReceiveName</span>
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            联系电话
        </td>
        <td>
            <span id="show_Telephone">@Model.ReceiveTelephone</span>
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            联系地址
        </td>
        <td>
            <span id="show_Address">@Model.ReceiveAddress</span>
        </td>
    </tr>
    <tr>
        <td style="font-weight: bold;" align="right">
            电子邮箱
        </td>
        <td>
            <span id="show_Email">@Model.ReceiveEmail</span>
        </td>
    </tr>
</table>
@using (Html.BeginForm())
{
    <div style="height: 20px; line-height: 20px; width: 950px; margin: 40px auto 0 auto;
        padding: 2px 0; border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px;
        font-weight: bold;">
        数据名称
    </div>
    <div style="width: 850px; margin: 10px auto; font-size: 12px;">
        @Html.TextArea("DataName",@Model.Special.DataName, 5, 20, new { style = "width:800px;height:120px;" })
    </div>
    <div style="height: 20px; line-height: 20px; width: 950px; margin: 40px auto 0 auto;
        padding: 2px 0; border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px;
        font-weight: bold;">
        时间范围
    </div>
    <div style="width: 850px; margin: 10px auto; font-size: 12px;">
        @Html.TextArea("TimeValue", @Model.Special.TimeValue, 5, 20, new { style = "width:800px;height:120px;" })
    </div>
    <div style="height: 20px; line-height: 20px; width: 950px; margin: 40px auto 0 auto;
        padding: 2px 0; border-bottom: solid 2px #F0F1F3; color: #000000; font-size: 16px;
        font-weight: bold;">
        空间范围
    </div>
    <div style="width: 850px; margin: 10px auto; font-size: 12px;">
        @Html.TextArea("ExtentValue", @Model.Special.ExtentValue, 5, 20, new { style = "width:800px;height:120px;" })
    </div>
    @Html.Partial("MessageTip")
    
    <div class="row" style="margin-top: 20px;">
        <div class="span2 offset4">
            <input type="submit" id="Button1" class="btn  btn-primary  btn-large" value="保存" />
        </div>
    </div>
}
